package model

import "gorm.io/gorm"

type Article struct {
	gorm.Model
	UserId       int    `gorm:"type:int; not null;" json:"user_id"`
	Title        string `gorm:"type:varchar(30);" json:"title"`
	Contexts     string `gorm:"type:text;not null;" json:"contexts"`
	LikeCount    int    `gorm:"type:int;not null;default:0;" json:"like_count"`
	ContextCount int    `gorm:"type:int;not null;default:0;" json:"context_count"`
}
